from random import randint
class Die:
    def __init__(self,sides=6):
        self.sides = sides
    def roll_die(self):
        print(randint(1,self.sides))

one = Die()
one.roll_die()
one.roll_die()

ten = Die(10)
ten.roll_die()
ten.roll_die()

ten = Die(20)
ten.roll_die()
ten.roll_die()